package com.ithuameng.admin.app.system.model.admin.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * UserIndexResetPwdVo
 *
 * @author ithuameng
 */
@Data
public class UserIndexResetPwdVo {

	@NotBlank(message = "用户名不能为空")
	private String username;

	@NotBlank(message = "旧密码不能为空")
	@Size(min = 6, max = 20, message = "旧密码长度必须介于 6和 20 之间")
	@javax.validation.constraints.Pattern(regexp = "^\\S*$", message = "旧密码存在空格")
	private String oldPassword;

	@NotBlank(message = "新密码不能为空")
	@Size(min = 6, max = 20, message = "新密码长度必须介于 6 和 20 之间")
	@javax.validation.constraints.Pattern(regexp = "^\\S*$", message = "新密码存在空格")
	private String newPassword;

	@NotBlank(message = "确认密码不能为空")
	private String confirmPassword;
}
